export type articleType = {
  link?: string;
  url?: string;
  id: string;
  type: string;
  subType: string;
  title: string;
  author: string;
  banner: string;
  description: string;
  file: string;
  topAt: string;
  updateAt: string;
};
export type articleDetailType = {
  id: string;
  updateAt: string;
  description: string;
  content: any;
  title: string;
};
export type linkType = {
  id: string;
  title: string;
  url: string;
};

export type metaInfoType = {
  links: linkType[];
};

export type contactDetailInfoType = {
  person: string;
  address: string;
  longitude: string;
  latitude: string;
  phones: string;
  workStart: string;
  workEnd: string;
};

export type departmentInfoType = {
  person: string;
  phone: string;
  department: string;
  email: string;
};

export type contactInfoType = {
  info: contactDetailInfoType;
  departments: departmentInfoType[];
};

export type baseInfoType = {
  metaInfo: metaInfoType;
  contactInfo: contactInfoType;
};

export type queryParamsType = {
  categoryId?: number | string;
  keyword?: number | string;
  total?: number;
  type?: string | number;
  pageSize?: number;
  current?: number;
  issueYear?: number;
};

export type queryContentType = {
  resolvedUrl: string;
  query: { type?: string; id?: string; categoryId?: string; keyword?: string };
};
